package com.xuyiwei.mayi.service;

import com.xuyiwei.mayi.base.ResponseBase;
import com.xuyiwei.mayi.entity.PaymentInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by xuyiwei on 2019/5/5.
 */
@RequestMapping("/pay")
public interface PayService {

    //创建支付token
    @RequestMapping("/createPayToken")
    public ResponseBase createPayToken(@RequestBody PaymentInfo paymentInfo);

    //根据token查找订单
    @RequestMapping("/findOrderByToken")
    public ResponseBase findOrderByToken(@RequestParam("token") String token);

}
